import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
//import Setup from "../views/Set-up.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  //设置
  {
    path: "/setup",
    name: "Setup",
    component: () => import('../views/Set-up.vue'),
    children:[
    
      //通知公告
      {
        path:"NoticeNotice",
        name:"NoticeNotice",
        component: () => import('../components/SetUp/GeneralSettings/NoticeNotice.vue')
      },
     
      //客服管理
      {
        path:"CustomerServiceManagement",
        name:"CustomerServiceManagement",
        component: () => import('../components/SetUp/TeamSetup/CustomerServiceManagement.vue')
      },
      //分组管理
      {
        path:"GroupManagement",
        name:"GroupManagement",
        component: () => import('../components/SetUp/TeamSetup/GroupManagement.vue')
      },
   
      //常用语
      {
        path:"CommonWords",
        name:"CommonWords",
        component: () => import('../components/SetUp/CustomerServiceSettings/CommonWords.vue')
      },
    
      //黑名单
      {
        path:"BlackList",
        name:"BlackList",
        component: () => import('../components/SetUp/CustomerServiceSettings/BlackList.vue')
      },
      
      //预设问题
      {
        path:"PresuppositionProblem",
        name:"PresuppositionProblem",
        component: () => import('../components/SetUp/CustomerServiceSettings/PresuppositionProblem.vue')
      },
     
      
    ]
  },
  
];

const router = new VueRouter({
  routes
});

export default router;
